package com.mcp_life.module.userbasemodules.mapper;

import com.mcp_life.entity.dto.UserAddressDTO;
import com.mcp_life.entity.pojo.UserAddress;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AddressMapper {
    @Insert("insert into user_address(user_id,province_code,city_code,district_code,is_default,status,update_time,create_time,detail_address,address_name,phone_number,gender,type) values(#{userId},#{provinceCode},#{cityCode},#{districtCode},#{isDefault},#{status},#{createTime},#{updateTime},#{detailAddress},#{phoneNumber},#{addressName},#{gender},#{type})")
    void insert(UserAddress userAddress);
    void update(UserAddressDTO addressDTO);
}
